package com.example.onlinefood.mapper;

import com.example.onlinefood.domain.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderItemMapper {
    int insertBatch(@Param("items") List<OrderItem> items);
    List<OrderItem> findByOrderId(@Param("orderId") Integer orderId);
    int deleteByOrderId(@Param("orderId") Integer orderId);
}


